package com.maimao.info.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.maimao.model.info.SearchHistory;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author MaoLin Wang
 * @date 2020/12/29 9:42 下午
 */
public interface SearchHistoryMapper extends BaseMapper<SearchHistory> {
    List<SearchHistory> selectByUserId(String userId);

    SearchHistory selectByKeyAndUserId(@Param("key") String key,@Param("userId") Long userId);

    int deleteByKeyAndUserId(@Param("key") String key, @Param("userId") String userId);
}
